package com.anolesoft.yr.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhj
 * @date 2020/8/7 19:36
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageInfo<T> {
    private Integer limit;
    private Integer total;
//    private T items;
    private T rows;

//    public PageInfo(Integer total, T items) {
//        this.total = total;
//        this.items = items;
//        this.limit = 0;
//    }

    public PageInfo(Integer total, T rows) {
        this.total = total;
        this.rows = rows;
        this.limit = 0;
    }
}
